//var GIE = function () {
	var ExportToText = function(g){
		var uCount = Object.keys(g).length;
		var text = uCount+"\n";
		for (var u in g){
			if (g.hasOwnProperty(u)) {
				//var vCount = Object.keys(g[u]).length;
				var vCount = 0;
				var textLine = '';
				for (var v in g[u]){				// edge (v - neighbour vertex)
					if (g[u].hasOwnProperty(v)) {
						if (g[u][v]!==null){
							++vCount;
							textLine += v+","+g[u][v]+",x ";
						}
						//g[u][v]
					}
				}
				text += vCount+"\n"+textLine+"\n";
			}
		}
		return text;
	}
//}();